/**
 * @type {import('vuex').Module}
 */
const user = {
  namespaced: true,
  state: {
    profile: {},
  },
  mutations: {
    setProfile(state, profile) {
      state.profile = {
        ...state.profile,
        ...profile,
      };
    },
    clearProfile(state) {
      state.profile = {};
    },
  },
};
export default user;
